/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.escheduler.common.enums;

/**
 * command types
 */
public enum CommandType {

    /**
     * command types
     * 0 start a new process 启动一个新工作流
     * 1 start a new process from current nodes 从当前节点启动一个新工作流
     * 2 recover tolerance fault work flow 恢复容错故障工作流
     * 3 start process from paused task nodes 从暂停的任务节点启动工作流
     * 4 start process from failure task nodes 从失败任务节点启动工作流
     * 5 complement data 补数
     * 6 start a new process from scheduler 从调度程序启动一个新工作流
     * 7 repeat running a work flow 重新运行一个工作流
     * 8 pause a process 暂停一个工作流
     * 9 stop a process 停止一个工作流
     * 10 recover waiting thread 恢复等待线程
     */
    START_PROCESS,
    START_CURRENT_TASK_PROCESS,
    RECOVER_TOLERANCE_FAULT_PROCESS,
    RECOVER_SUSPENDED_PROCESS,
    START_FAILURE_TASK_PROCESS,
    COMPLEMENT_DATA,
    SCHEDULER,
    REPEAT_RUNNING,
    PAUSE,
    STOP,
    RECOVER_WAITTING_THREAD
    ;

}
